package com.eastfair.venuebooking.service;

import com.eastfair.pay.vo.ContractFinanceVO;
import com.eastfair.venuebooking.dto.ContractManageDTO;

/**
 * 支付系统合同服务.
 *
 * @author dqq
 * @date 2022 /6/25
 */
public interface VenueBookingContractService {

    /**
     * 支付系统保存或修改合同.
     *
     * @param contractManageDTO the contract dto
     * @return the boolean
     */
    boolean saveOrUpdate(ContractManageDTO contractManageDTO);

    /**
     * 支付系统合同是否有认款记录.
     *
     * @param contactId the contact id
     * @return the boolean
     */
    boolean isCollected(Long contactId);

    /**
     * 支付系统 id 删除合同.
     *
     * @param contractId the contract id
     * @return the boolean
     */
    boolean delete(Long contractId);

    /**
     * 支付系统 合同ID查询付款信息.
     *
     * @param contractId the contract id
     * @return the contract finance vo
     */
    ContractFinanceVO queryFinance(Long contractId);
}
